import { reactive, toRefs } from 'vue'
import { defineStore } from 'pinia'
export const useDialogsStore = defineStore('dialogs', () => {
  const dialogs = reactive({
    user: {
      manage: false,
      update: false,
      logout: false
    },
    map: {
      // 先写成组件, 最后可以考虑写成hook
      trafficOpen: false,
      trafficClose: false,
      thermodyOpen: false,
      thermodyClose: false,
      monitorOpen: false,
      monitorClose: false,
      toolsExportPic: false,
      toolsMeatureDistance: false,
      toolsMeatureArea: false
    },
    event: {
      report: false,
      check: false,
      checking: false,
      manage: false,
      statistics: false,
      search: false // ? 先用旧方案  (或新方案&''?)
    },
    notice: {
      show: false,
      add: false
    }
  })
  return { dialogs }
})
